package mybatis.pojo;

import java.io.Serializable;

public class User implements Serializable {
    private int userno;
    private String username;
    private String password;
    private String address;
    private int age;

    public int getAge() {
        return age;
    }

    public String getPassword() {
        return password;
    }

    public String getUsername() {
        return username;
    }

    public String getAddress() {
        return address;
    }

    public int getUserno() {
        return userno;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public void setUserno(int userno) {
        this.userno = userno;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public User(){}

    public User(int userno,String username,String password,String address,int age){
        setUserno(userno);
        setAddress(address);
        setPassword(password);
        setUsername(username);
        setAge(age);
    }
    public User(String username,String password){
        setUsername(username);
        setPassword(password);
    }
}
